package org.jeecg.modules.wxhtml.enums;

import lombok.Getter;

@Getter
public enum WxHtmlPathEnum {

    ACCESS_TOKEN("/sns/oauth2/access_token", "通过code换取网页授权access_token"),
    REFRESH_TOKEN("/sns/oauth2/refresh_token", "刷新access_token"),
    USER_INFO("/sns/userinfo", "拉取用户信息(需scope为 snsapi_userinfo)"),
    AUTH("/sns/auth", "检验授权凭证（access_token）是否有效");

    private final String url;

    private final String text;

    private WxHtmlPathEnum(String url, String text) {
        this.url = url;
        this.text = text;
    }

}
